﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace HMS_TabletClient
{
    public partial class NewRoom : Form
    {
        public NewRoom()
        {
            InitializeComponent();
        }

        private void button13_Click(object sender, EventArgs e)
        {
            SmallMap fater = (SmallMap)this.Owner;
            int count = checkedListBox1.CheckedItems.Count;
            string rooms="";
            for(int i=0;i<count;i++)
            {
                rooms += checkedListBox1.CheckedItems[i].ToString() + ",";
            }
            fater.insertroom(comboBox1.Text,rooms);
            this.Close();
            
        }
    }
}
